// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System;
using Updater.Common;
using Updater.Wpf.Properties;
using Version = Updater.Utils.Version;

namespace Updater.Wpf
{
    public class UpdateDetailsDisplayEventArgs : EventArgs
    {
        public UpdateDetailsDisplayEventArgs([NotNull] Version currentVersion, [NotNull] UpdateLog updateLog)
        {
            if (currentVersion == null)
            {
                throw new ArgumentNullException("currentVersion");
            }

            if (updateLog == null)
            {
                throw new ArgumentNullException("updateLog");
            }

            this.CurrentVersion = currentVersion;
            this.UpdateLog = updateLog;
        }

        public ChangeLogRecord[] ChangeLog { get; private set; }

        public Version CurrentVersion { get; private set; }
        public UpdateLog UpdateLog { get; private set; }
    }
}
